<template>
  <div>
      <span v-if="label == 1"> 单选 </span>
      <span v-if="label == 2"> 多选 </span>
      <span v-if="label == 3"> 判断 </span>
      <span v-if="label == 4"> 填空 </span>
      <span v-if="label == 5"> 简答 </span>
    
  </div>
</template>
<script>
// 待定::存入后台字典
/* import { questionType, questionDifficult } from "@/enum/exam/question"; */
/* 很简单的一些就没必要去循环啊这些了 */
export default {
  name: "typeAndDfficultComponent",
  props: {
    //   是questionDfficult还是questionType
    name: {
      required: true,
      default: "type",
      validator: function (value) {
        // 这个值必须匹配下列字符串中的一个
        return ["type", "difficult"].includes(value);
      },
    },
    label: {
      type: [String, Number],
      required: true,
      default: "1",
    },
  },
  data() {
    return {};
  },
};
</script>
